package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.pojo.Emp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;

/**
 * 员工模块的持久层
 */
@Mapper
public interface EmpMapper {
    Page<Emp> findByCondition(@Param("name") String name,
                              @Param("gender") Short gender,
                              @Param("begin") LocalDate begin,
                              @Param("end") LocalDate end);

    void insert(Emp emp);
}
